import request from '@/utils/request'

export function getMenu(query) {
  return request({
    url: '/settings/app/page',
    method: 'get',
    params: query
  })
}
export function addMenu(data) {
  return request({
    url: '/settings/app',
    method: 'post',
    data
  })
}
export function updateMenu(id,data) {
  return request({
    url: '/settings/app/'+id,
    method: 'post',
    data
  })
}
export function getSettingMenu(id) {
  return request({
    url: '/settings/app/'+id,
    method: 'get',
  })
}
export function removeMenu(id) {
  return request({
    url: '/settings/app/remove/'+id,
    method: 'post',
  })
}

